package com.service;

import com.dao.InsertDao;
import com.entity.Goods;
import com.entity.Product;
import com.entity.RatingUser;
import com.entity.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * @author king
 * @date 2022/5/18 - 9:58
 */

@Service    // 注解为service层spring管理bean
@Transactional
public class InsertUserService {
    @Autowired
    InsertDao insertDao;
    public List<RatingUser> queryByRattingUid() {
        return insertDao.queryByRattingUid();

    }

    public void insertUsers(List<Users> users1) {
        insertDao.insertUsers(users1);

    }

    public List<Product> queryPros() {
        return insertDao.queryPros();
    }

    public void insertPro(List<Goods> goods) {
        insertDao.insertPro(goods);
    }
}

